# Replication Package for: The Gendered Persistence of Authoritarian Indoctrination

Authors: Nourhan A. Elsayed, Hanno Hilbig, Sascha Riaz, Daniel Ziblatt

For questions / comments, please contact <hhilbig@ucdavis.edu> or <sascha.riaz@eui.eu>.

## 1. Overview

This repository contains code and data to replicate the results of "The Gendered Persistence of Authoritarian Indoctrination" (accepted at BJPS).

## 2. Repository Structure

```
.
├── code/                      # R scripts for replication
├── data/                      # Main datasets
│   ├── forsa.rds             # Forsa survey (2017-2019)
│   ├── pb_2016_clean.rds     # Politbarometer (2016)
│   └── zij.rds               # ZIJ survey (1989-1990)
├── data_not_upload/          # Additional data (not included)
├── replication.Rproj         # R project file
└── replication_overview.xlsx # Overview of replication files
```

## 3. Data

The replication package includes the following datasets:

1. **ZIJ Survey (1989-1990)**

   - Pre- and post-reunification survey of ~5,000 East Germans
   - Measures support for capitalism, reformed socialism, and reunification
   - File: `data/zij.rds`
2. **Contemporary Surveys**

   - Politbarometer (2016): Satisfaction with market economy
   - Forsa (2017-2019): Voting intentions for AfD
   - Files: `data/pb_2016_clean.rds`, `data/forsa.rds`

### 3.1 Omitted data sets

We omit the following data sets:

1. Microcensus
2. SOEP Survey
3. Civey (2017): Attitudes toward the GDR

Data access to the German Microcensus and the SOEP can only be obtained through formal application and approval through their respective research data centers (DIW Berlin and Research Data Centre of the Statistical Offices of the Federal States).
The Civey survey data is proprietary, available only by direct purchase or institutional agreement with the survey firm.

Please note that the code files load this data from a folder called `data_not_upload`, which is not part of the replication archive. The following scripts will not run without this data:

- `code/fig_A7.R`
- `code/fig_A10_A11.R`
- `code/fig_A12_tab_A4.R`
- `code/tab_2_3_A3_fig_A8.R`

## 4. Code Structure

The analysis code naming scheme indicates which tables / figures are produced by a given file.

- `tab_1.R`: Replicates Table 1
- `tab_2_3_rows_5_6.R`: Replicates rows 5-6 of Tables 2 and 3
- `tab_2_3_A3_fig_A8.R`: Replicates Tables 2, 3, A3 and Figure A8
- `fig_A1.R` through `fig_A12_tab_A4.R`: Replicate figures and tables in the appendix
- `helper_function.R`: Contains two utility functions used across analyses

Additional info is given in `replication_overview.xlsx`.

**Note:** Replication code for tables 2 and 3 is split over two .R files: `tab_2_3_rows_5_6.R` and `tab_2_3_A3_fig_A8.R`

## 5. Replication Steps

1. Ensure all data files are in the `data/` directory
2. Run the R scripts to reproduce all tables and figures. The scripts use relative file paths, so ensure your working directory is set to the root folder of this repository.
